package com.hjp;

import java.util.Random;
import java.util.Scanner;
//查找单入口空闲区域
//

public class Test {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int m = in.nextInt();
            int n = in.nextInt();
            String [][] arr = new String[n][];
            Random r = new Random();
            int num =0;
            for (int i = 0; i < n; i++) {
                arr[i] = new String[n];
                for (int j = 0; j < m; j++) {
                    num = r.nextInt(2);
                    if(num==0){
                        arr[i][j] = "X";
                    }else{
                        arr[i][j] = "O";
                    }
                }
            }
            if(arr[0][0].equals("O"))
            for (String[] strings : arr) {
                for (String string : strings) {
                    System.out.print(string+" ");
                }
                System.out.println();
            }
        }
    }
}
